﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HNQXYJ.BLL;
using HNQXYJ.Model;

namespace HNQXYJ.HN_AreaGroup
{
    public partial class TerminalGroups : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Save_Click(object sender, ImageClickEventArgs e)
        {
            string areacode = this.HidGroup.Value;
            string phone = this.txtPhones.Text.Trim();
            phone = phone.Replace("\r\n", " ");
            string[] ph = phone.Split(' ');
            for (int i = 0; i < ph.Length; i++)
            {
                TerminalBLL.UpateAreaCodeByPhone(ph[i].Trim(), areacode);
            }
                this.Label1.Text ="分组完成！";
        }
    }
}